    SB.ShareLinkView = Backbone.View.extend({
        events : {
            'click #share-link' : "shareLink",
        },

        initialize : function() {
            _.bindAll(this, 'shareLink')
            this.page = null;
        },

        shareLink : function() {
            var url = this.$('#share-link-input').val();
            var $this = this;
            $.fancybox.showLoading();
            $.get("/api/scraper/get-photos/?url=" + encodeURIComponent(url), function(data) {
                console.log(data);
                $this.page = JSON.parse(data);
                SB.shareLinkView = VM.createView("shareLinkView", function() {
                    return new SB.ShareLinkPopupView({
                        photoUrls : $this.page.photos,
                        title : $this.page.title,
                        url : url
                    });
                });
                $.fancybox.hideLoading();
                $.fancybox(SB.shareLinkView.render().el);
            });
        }
    });

    SB.shareLinkView = new SB.ShareLinkView({
        el : '.wrapper'
    });
    